﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="CommonMangner.aspx.cs" Inherits="XYTXL.View.Comon.CommonMangner" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/View/CSS/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet" />
    <link rel="stylesheet" href="/View/JS/jQuery-Validation-Engine-2.6.2/css/validationEngine.jquery.css" />
    <link rel="stylesheet" type="text/css" href="/View/JS/zTree_v3/css/zTreeStyle/zTreeStyle.css" />
    <link rel="stylesheet" type="text/css" href="/View/CSS/MyClass.css" />
    <script src="/View/JS/jquery-1.11.2.min.js"></script> 
    <script src="/View/JS/avalon1.47.js"></script>

    <!--[if IE]>
        <script src="/View/JS/html5shiv.js"></script>
    <![endif]-->
    <style type="text/css">
        .FT_Upload {
            display: none;
        }
        .getPeoples {
            display: none;
        }
        .delpl {
            visibility: collapse;
        }

        .Yan-comment:hover .delpl {
            visibility: visible;
        }
    </style>
    <script>
        var model = avalon.define({
            $id: "CommonMangner",
            FormID: "",
            FormCode: "",
            nowuser: "",
            PLData: [],
            PLContent: "",
            jptj: function (event) {
                if (event.ctrlKey && (event.keyCode == 13 || event.keyCode == 10)) {
                    model.addPL();
                }
            },
            addPL: function () {
                $.post('/API/FTAPI.ashx?Action=ADDCOMENT', { "ParamData": model.PLContent, "UserName": model.usercode, "MsgType": model.FormCode, "MsgLYID": model.FormID }, function (result) {
                    var result = $.parseJSON(result);
                    if (result.ErrorMsg == "") {
                        model.PLData.push(result.Result)
                        model.PLContent = "";
                    }
                })
            },
            delP: function (el) {
                $.getJSON('/API/FTAPI.ashx?Action=DELCOMENT', { "ParamData": "", "PLID": el.ID }, function (resultData) {
                    model.PLData.remove(el);
                    parent.MyDialog.success('删除成功');

                })
            }
        })
        avalon.ready(function () {
            model.nowuser = parent.$("#hidUserName").val();
            model.FormID = $("#hidFormID").val();
            model.FormCode = $("#hidFormCode").val();
            $.getJSON('/API/FTAPI.ashx?Action=GETCOMENT', { "ParamData": "", "MsgType": model.FormCode, "MsgLYID": model.FormID }, function (resultData) {
                model.PLData = $.parseJSON(resultData.Result);
            })
        })
    </script>
</head>
<body ms-controller="CommonMangner">
    <form id="addForm" runat="server" defaultbutton="btManageForm">

        <div class="container-fluid maindiv" style="margin: 20px 20px 50px 20px">
            <div class="row">
                <div class="col-xs-12">
                    <div class="tabbable">
                        <!-- Only required for left/right tabs -->
                        <ul class="nav nav-tabs" role="tablist">
                            <li class="active"><a href="#tabForm" data-toggle="tab" role="tab" style="font-size: 16px;">
                                <asp:Label runat="server" ID="lblTitle" Font-Bold="True" /></a></li>
                            <%--<li><a href="#tabConfirm" data-toggle="tab" role="tab" style="font-size: 16px"><span id="liBDJS">表单通知管理</span> <span class="label label-info labcount"></span></a></li>--%>
                            <li class="pull-right"></li>
                        </ul>
                        <div class="tab-content" id="condv" style="overflow: hidden">
                            <!--startprint-->
                            <div class="tab-pane fade in active" id="tabForm" style="padding-top: 10px; margin-bottom: 10px">

                                <asp:PlaceHolder runat="server" ID="UserControl" />
                                
                            </div>
                            <!--endprint-->

                            <div class="tab-pane fade row-fluid" id="tabConfirm">
                                <div class="row">
                                    <div class="col-xs-4">
                                        <div class="panel  panel-default" style="margin-top: 20px">
                                            <div class="panel-body">
                                                <ul id="tree" class="ztree">
                                                </ul>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="col-xs-6">
                                    </div>

                                </div>

                            </div>
                        </div>
                    </div>
                </div>


            </div>


            <table class="table navbar-fixed-bottom tabTool" style="background-color: whitesmoke;" id="tabSP" runat="server">
                <tbody>
                    <tr>
                        <td style="text-align: center">

                            <div class="input-group">
                                <span class="input-group-addon">处理意见</span>
                                <input type="text" class="form-control" placeholder="此处填写处理意见,按ENTER键签核通过" runat="server" id="txtFormYJ">
                                <span class="input-group-btn">
                                    <asp:Button Text="确认签核" ID="btManageForm" runat="server" CssClass="btn btn-success" OnClientClick="Checkdata()" OnClick="btManageForm_Click" />
                                    <asp:Button ID="btRebackForm" Text="退回表单" runat="server" CssClass="btn btn-danger" OnClick="btRebackForm_Click" />
                                </span>
                            </div>

                        </td>
                    </tr>

                </tbody>
            </table>
        </div>
        <script src="/View/CSS/bootstrap3.3.5/js/bootstrap.js"></script>
        <script type="text/javascript" src="/View/Scripts/FTCommon.js"></script>
        <script type="text/javascript" src="/View/JqueryPlug/zTree_v3/js/jquery.ztree.core-3.5.min.js"></script>
        <script type="text/javascript" src="/View/JqueryPlug/zTree_v3/js/jquery.ztree.excheck-3.5.min.js"></script>
        <script src="/View/JqueryPlug/jQuery-Validation-Engine-2.6.2/js/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
        <script src="/View/JqueryPlug/jQuery-Validation-Engine-2.6.2/js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
        <script src="FormBaseJS.js" type="text/javascript" charset="utf-8"></script>

         <script type="text/javascript">
             function AddSuccess() {
                 setTimeout("window.location.href = window.location.href;", 1000);
                 var piframe = parent.$('iframe:visible')[0];
                 piframe.contentWindow.location.reload();
                 var index = parent.layer.getFrameIndex(window.name);
                 parent.layer.close(index);
             }
        </script>
        <link href="/View/JqueryPlug/umeditor122/themes/default/css/umeditor.css" type="text/css" rel="stylesheet" />
        <script src="/View/JqueryPlug/umeditor122/umeditor.js" type="text/javascript" charset="utf-8"></script>
        <script src="/View/JqueryPlug/umeditor122/umeditor.config.js" type="text/javascript" charset="utf-8"></script>
        <input type="hidden" id="hidFormCode" runat="server" value="" />
        <input type="hidden" runat="server" id="hidFormID" value="" />
        <input type="hidden" id="hidConfirmUsers" runat="server" value="" />
        <input type="hidden" id="hidProcessID" runat="server" value="" />
    </form>
</body>
</html>
